<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

        <script type="text/javascript">
            function showToast(toast) {
                //js调用android
                javascript:control.showToast(toast);
            }

            function log(msg){
                console.log(msg);
            }
        </script>

    </head>

    <body>
        <input type="button" value="toast"
               onClick="showToast('Hello world')" />
    </body>
</html>